class CreateDataTypes < ActiveRecord::Migration
  def change
    create_table :data_types do |t|
      t.integer :no,  :null => false, :default => 1
      t.string :name, :null => false
      t.string :code
      t.string :group_name
      t.integer :sup_id
      t.integer :subs_count, :null => false, :default => 0
      t.string :records_count, :null => false, :default => 0

      t.timestamps
    end
  end
end
